#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <sstream>
#include <vector>
#include <string>
using namespace std;


int main() {
  int i,j ,k;
  int N; cin >> N;
  int tota, totb, oka, okb;
  tota = totb = oka = okb = 0;
  for (i = 0; i < N; ++i) {
    int t, x, y; cin >> t >> x >> y;
    if (t == 1) tota+=10, oka += x;
    else totb += 10, okb += x;
  }
  if (oka * 2 >= tota) cout << "LIVE" << endl; else cout << "DEAD" << endl;
  if (okb * 2 >= totb) cout << "LIVE" << endl; else cout << "DEAD" << endl;


  return 0;
}
